package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Func;
import com.example.demo.common.mapper.FuncMapper;
import com.example.demo.common.service.FuncService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FuncServiceImpl implements FuncService {
    @Resource
    FuncMapper funcMapper;
    @Override
    public void saveFunc(Func func){
        funcMapper.insert(func);
    }
    @Override
    public void updateFunc(Func func){
        funcMapper.updateById(func);
    }
    @Override
    public void deleteByRef(String ref){
        funcMapper.deleteByRef(ref);
    }
}
